package com.example.oss.entity;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ResultEnum {
    SELECT_SUCCESS("选课成功！"),
    SELECT_FAILURE("选课失败！"),
    SELECT_REPEAT("每个人只能选择一门课！"),
    SELECT_EMPTY("该课程已被选完！"),
    LIMIT("访问太频繁，请稍后再试！"),

    SELECT_QUEUING("排队中..."),

    ERROR("服务器发生错误！"),
    LOGIN_SUCCESS("登录成功！"),
    LOGIN_FAILURE("用户名或密码错误！"),
    VERIFY_CODE_ERROR("验证码错误"),
    NOT_LOGIN("请先登录！"),
    ACCESS_DENIED("没有权限！"),
    DROP_SUCCESS("退课成功！"),
    DROP_FAILURE("退课失败，您不存在该选课记录！");


    private final String msg;

    public String msg() {
        return msg;
    }

}
